import 'package:json_annotation/json_annotation.dart';
part 'list_bean.g.dart';

@JsonSerializable()
class ListBean {
  String id;
  String name;
  String supid;
  String createtime;
  String updatetime;
  int type;

  ListBean(
      {this.id,
      this.name,
      this.supid,
      this.createtime,
      this.updatetime,
      this.type});

  ListBean.fromJson(Map<String, dynamic> json) {
    this.id = json['id'];
    this.name = json['name'];
    this.supid = json['supid'];
    this.createtime = json['createtime'];
    this.updatetime = json['updatetime'];
    this.type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['supid'] = this.supid;
    data['createtime'] = this.createtime;
    data['updatetime'] = this.updatetime;
    data['type'] = this.type;
    return data;
  }
}
